UserScript:Fetch API
APIを叩いてなんとかする
code:script.js
const projects = new Promise((resolve, reject) => {
fetch('https://scrapbox.io/api/projects')
.then(response => response.json())
.then(json => json.projects)
.then(resolve)
.catch(reject)
})
JavaScript:Fetch API
JavaScript:Promise
Scrapbox:API
UserScript.icon
https://img.shields.io/badge/JavaScript-UserScript_Fetch_API-F7DF1E.svg?logo=javascript&style=for-the-badge